<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="{$smarty.const.__PUBLIC_JS__}/jquery-3.1.1.js"></script>
    <script type="text/javascript">
        function send_time(urls) {
            $.ajax({
                type: "POST",
                url: urls,
                data: "settime=" + document.getElementById("set_time").value,
                success: function (msg) {
                    var json = JSON.parse(msg);
                    if(json.result == "成功"){
                        window.location.reload();
                    }else if (json.result == "失败"){
                        window.alert("失败");
                    }
                    console.log(msg);
                }
            });
        }
    </script>
</head>
<body>
<div>
    <div>订单结算时间点:{$show.settlementTime}</div><!--这个参数要设置为不可修改-->
    <div>上一次修改时间:{$show.editTime}</div> <!--这个参数要设置为不可修改-->
    <div><input type="text" id="set_time"></div>
    <div><input type="button" value="保存" onclick='send_time("{$smarty.const.__CONTROLLER__}/BalanceTime")'></div>
</div>
</body>
</html>